Q actions Class
jQuery plugin that adds action icons that appear over elements and allow the user to perform some action, and display correctly on both desktop and mobile.
Constructor
Q actions
-
[options]
-
[Q.Event]
-
[Q.Event]
Parameters:
-
[options]
Object optionalpossible options
-
[actions={}]
Array optionalactions an array of name:function pairs
-
[containerClass='']
String optionalcontainerClass any class names to add to the actions container
-
[zIndex=null]
Number optionalzIndex z-index from style
-
[position='mr']
String optionalposition one of 't', 'm', 'b' followed by one of 'l', 'c', 'r'
-
[size=32]
Number optionalsize number for css class basic , example 32 for basic32 class
-
[alwaysShow=Q.info.isTouchscreen]
Boolean optionalalwaysShow
-
[horizontal=true]
Boolean optionalhorizontal if true, show actions horizontally
-
[reverse=false]
Boolean optionalreverse if true, show in reverse order
-
[clickable=true]
Boolean optionalclickable use clickable plugin
-
[context={}]
Object optionalcontext any context to pass to the actions
-
[repositionMs=200]
Number optionalrepositionMs how many milliseconds between repositioning
-
[onShow]
Q.Event optionalonShow , event that triggering after action show
-
-
[Q.Event]
Object optional[options.beforeHide] beforeHide , event that triggering before action close
-
[Q.Event]
Object optional[options.onClick] onClick , event that triggering on action click